﻿using Coolzon.Realtime.Contracts;
using Coolzon.Realtime.Contracts.CommandData;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.Realtime.ServerApp.ServiceImplement
{
    public class ReqMagnifySceneHandler : BaseHandler<ReqMagnifySceneData, RespMagnifySceneData>
    {
        public ReqMagnifySceneHandler()
            : base(RESPONSE_SCENARIO.SCENE, RESPONSE_COMMAND.SCENE.MAGNIFYSCENE)
        {
        }

        protected override RespMagnifySceneData OnHandle(Request request, ReqMagnifySceneData requestData)
        {
            RespMagnifySceneData responseData = new RespMagnifySceneData();
            responseData.IsEnable = requestData.IsEnable;
            responseData.SceneName = requestData.SceneName;
            responseData.Rate = requestData.Rate;
            responseData.Duration = requestData.Duration;
            responseData.DestPointX = requestData.DestPointX;
            responseData.DestPointY = requestData.DestPointY;
            responseData.DestRadius = requestData.DestRadius;
            return responseData;
        }
    }
}
